{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>节点列表</h1>
        <a href="{:url('admin/con3/add')}" class="btn btn-primary" style="float:right;">添加节点</a>
        <table class="table table-hover ">
            <tr class="info">
                <th class="text-center">ID</th>
                <th class="text-center">节点名</th>
                <th class="text-center">模块名</th>
                <th class="text-center">方法名</th>
                <th class="text-center">状态</th>
                <th class="text-center">操作</th>
            </tr>

            {volist name="list" key="k" id="v"}
            <tr class="text-center">
                <td>{$v['id']}</td>
                <td>{$v['name']}</td>
                <td>{$v['con_name']}</td>
                <td>{$v['way']}</td>
                <td>{$v['status']==0?'启用':'禁用'}</td>
                <td>
                    <a href="#" class="btn btn-danger">删除</a>
                    <a href="#" class="btn btn-success">编辑</a>
                </td>
            </tr>
            {/volist}
        </table>
    </div>
</div>
{/block}